﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;

namespace QuanLyNhaSach.MainMenu
{
    public partial class FrmBookReport : DevComponents.DotNetBar.Office2007Form
    {
        BookBUS _bookBUS;

        public FrmBookReport()
        {
            InitializeComponent();
            dtgInvoice.AutoGenerateColumns = false;
            _bookBUS = new BookBUS();
            dtpFrom.Value = DateTime.Now;
            dtpTo.Value = DateTime.Now;
        }

        private void FrmBookReport_Load(object sender, EventArgs e)
        {
            this.VisibleChanged += new EventHandler(FrmBookReport_VisibleChanged);
        }

        void FrmBookReport_VisibleChanged(object sender, EventArgs e)
        {
            
        }

        private void LoadListReport()
        {
            
        }

        private void btnReport_Click(object sender, EventArgs e)
        {
            List<BookReportDTO> listRpt = _bookBUS.GetListBookForReport(dtpFrom.Value, dtpTo.Value);
            dtgInvoice.DataSource = listRpt;
        }
    }

}
